home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Bug, reading and writing to SU
- Sent: 7/22/96 1:33 PM
- Received: 7/22/96 1:41 PM
- From: Arni McKinley, motion@nbn.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >>(1) I externalize my part, during which I write out a shapeList (ala
- >>ODFDraw) to a value in a property that I have added specially to the part's
- >>storage unit.
- >
- >First of all you are not supposed to do that. You should never saved your
- >data anywhere else than in the Content Property. Any non-standard
- >properties will not be cloned during a clone operation and you will loose
- >all references to embedded frames. If you need to create other properties
- >and values you need to create another storage unit and store a strong
- >reference to it in your value kind in the content property. That might
- >not be the cause of your problem but I wanted to point out that first.
-
- So I have a series of pages each of which has a shapeList on it. Currently
- each page is stored in its own property. That way I can have several values
- for the same page. You're suggesting that I should create a storage unit
- and put all of these properties there, then create a strong su ref to it in
- the kODContentsProp property of my part's SU. I assume that I can pick a
- new value "name" for that.
-
- If I understand correctly, cloning occurs for drag and drop, clipboard
- operations and so forth; but I thought this happened to the items in the
- current selection, not to the entire list of shapes. So a SU is created and
- the shapes in the selection are put into that SU when the promise is
- fulfilled.
-
- So when would the part's kODContentProp be cloned? If it is never cloned,
- then I should be able to have separate properties in the part's storage
- unit without any problem.
-
- Arni
-
- _______________________________________
- Arnold F. McKinley
- President
- MetaMind Software, Inc.
- 342 Lowell Ave.
- Mill Valley, CA 94941
- 415-381-8063
- FAX: 415-389-8969
- motion@nbn.com
- _______________________________________
-
-
-